package com.dream.technology.db.dao;

import com.dream.technology.db.entity.RcRuleCollection;
import com.dream.technology.db.entity.RcRuleCollectionQuery;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface RcRuleCollectionMapper {
    int countByExample(RcRuleCollectionQuery example);

    int deleteByExample(RcRuleCollectionQuery example);

    int deleteByPrimaryKey(Long id);

    int insert(RcRuleCollection record);

    int insertSelective(RcRuleCollection record);

    List<RcRuleCollection> selectByExample(RcRuleCollectionQuery example);

    RcRuleCollection selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") RcRuleCollection record, @Param("example") RcRuleCollectionQuery example);

    int updateByExample(@Param("record") RcRuleCollection record, @Param("example") RcRuleCollectionQuery example);

    int updateByPrimaryKeySelective(RcRuleCollection record);

    int updateByPrimaryKey(RcRuleCollection record);

    /**
     * 修改规则集 查看应用该规则的规则集
     * 修改规则验证
     * @param ruleId
     * @return
     */
    List<RcRuleCollection> selectRcRuleCollectionById(@Param("id") Long ruleId);

}